package com.cykj.enterprise.runner;

import com.cykj.common.entity.RegionDO;
import com.cykj.enterprise.mapper.HomeMapper;
import com.cykj.enterprise.service.IHomeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @BelongsProject: smart_recruit_backend
 * @BelongsPackage: com.cykj.enterprise.runner
 * @Author: 小白糖糖
 * @CreateTime: 2025-08-23 16:18
 * @Description: TODO
 * @Version: 1.0
 */
@Component
public class StartRunner implements ApplicationRunner {

    @Autowired
    private IHomeService homeService;


    @Override
    public void run(ApplicationArguments args) throws Exception {
        homeService.getAllRegion();
    }
}
